Component({
  properties: {
    background:{
      type:String,
      value:''
    },
    helpflag: {
      type: Boolean,
      value: false
    },
    userinfo: {
      type: Object,
      value: ""
    },
    backFlag:{
      type: Boolean,
      value:false
    },
    num: {
      type: Number,
      value: ""
    }
  },
  data: {
    pictureUrl: '/image/',
    background: 'transparent',
  },
  methods: {
    notification(){
      const pages = getCurrentPages();
      const currentPage = pages.length - 1
      if(currentPage == 0){
        wx.switchTab({
          url: '../home/home',
        })
        return
      }
      wx.navigateBack({
        complete: (res) => {},
      })
    },
    // 去领取
    receive() {

      wx.navigateTo({
        url: '/pages/distribution/distribution'
      })
      return
    },
 
  }
});